
<html>
<head>
    <meta charset="UTF-8">
    <title>listvideos</title>
    <link href="asset/css/bootstrap.min.css" rel="stylesheet">
</head>
<body>
<div class="row col-lg-9">
        <ol class="breadcrumb">
                <li><a href="#">Home</a></li>
                <li class="active"><a href="admin.php?c=video&m=listvideos">Inter</a></li>
                <li class="active"><a href="admin.php?c=user&m=listusers">Company</a></li>

        </ol>
    <div class="row col-lg-10 col-lg-offset-1">
<table class=\"table table-hover\">
<caption class=\"text-center\"><strong>实习生表单</strong></caption>
<thead class='text-center'>
<tr>
<th>编号：</th>
<th>姓名：</th>
<th>专业：</th>
<th>性别：</th>
<th>爱好：</th>
<th>生日：</th>
<th>毕业于:</th>
<th>学校：</th>
<th>头像：</th>
<th>介绍：</th>
</tr>
</thead>
<?php
foreach($data['videos'] as $row){
    //$tid=$row['tid'];
    //$sqltid="select * from videotype where tid='$tid'";
    //$resulttid=mysql_query($sqltid,$conn);
    // $rowtid=mysql_fetch_assoc($resulttid);
    echo "<tr>";
    echo "<td>".$row['vid']."</td>";
    echo "<td>".$row['videoname']."</td>";
    echo "<td>".$row['tid']."</td>";
    echo "<td>";
        if($row['gender']=='0') echo "男";
        else echo "女";
    echo "</td>";
    echo "<td>".$row['hobby']."</td>";
    echo "<td>".$row['birthdate']."</td>";
    echo "<td>".$row['graduatedate']."</td>";
    echo "<td>".$row['school']."</td>";
    echo "<td><img class=\"img-circle\" width=\"70\" height=\"70\"src='posters/".$row['pic']."'> </td>";
    echo "<td>".$row['intro']."</td>";
    echo "<td><a class=\"btn btn-danger btn-sm btn-block\" href='admin.php?c=video&m=delvideo&vid=".$row['vid']."'>删除</a>";
    echo "
    <a class=\"btn btn-default btn-sm btn-block\" href='admin.php?c=video&m=editvideo&vid=".$row['vid']."'>修改</a></td>";

    echo "</tr>";
}
echo "</table>";

?>
<div>
    <p class="col-lg-3 col-lg-offset-9"><a class="btn btn-danger btn-sm btn-block" href="admin.php?c=video&m=regvideo">添加实习生</a></p>
</div>
</body>
</html>
